package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dao.producttype.ProductTypeMapper;
import com.bbzn.device.client.dataobject.ProductType;
import com.bbzn.device.client.service.ProductTypeService;
@Service
public class ProductTypeServiceImpl implements ProductTypeService{

    @Resource
    private ProductTypeMapper productTypeMapper;

    @Override
    public int deleteByPrimaryKey(Integer productId) {
        return productTypeMapper.deleteByPrimaryKey(productId);
    }

    @Override
    public int insert(ProductType record) {
        return productTypeMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(ProductType record) {
        return productTypeMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(ProductType record) {
        return productTypeMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(ProductType record) {
        return productTypeMapper.insertSelective(record);
    }

    @Override
    public ProductType selectByPrimaryKey(Integer productId) {
        return productTypeMapper.selectByPrimaryKey(productId);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductType record) {
        return productTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProductType record) {
        return productTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ProductType> findByAll(ProductType productType) {
        return productTypeMapper.findByAll(productType);
    }

    @Override
    public int updateBatch(List<ProductType> list) {
        return productTypeMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<ProductType> list) {
        return productTypeMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<ProductType> list) {
        return productTypeMapper.batchInsert(list);
    }

    @Override
    public List<ProductType> getProductType1() {
        return productTypeMapper.getProductType1();
    }

    @Override
    public List<ProductType> getProductTypeBy1(Integer productId) {
        return productTypeMapper.getProductTypeBy1(productId);
    }

}
